package com.prs.crm.domain.purchase;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.stock.Product;
/**
 * @author 江昭
 * @version 创建时间：2010-10-8 上午10:09:28 类说明
 */
@Entity
@Table(name = "purchase_purchaseStoreInDetail")
public class PurchaseStoreInDetail extends BaseEntity {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
	@ManyToOne
	private PurchaseStoreIn purchaseStoreIn;
	@ManyToOne
	private Product product;
	/**
	 * 入库数量
	 */
	private Integer inNumber;
	/**
	 * 出库数量
	 * @return
	 */
	@Column(columnDefinition = "Integer(11) default '0'")
	private Integer outNum;
	@Column(columnDefinition = "Integer(11) default '0'")
	private Integer outState;
	private Double price;
	private Integer discount;
	private String batchNum;
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public PurchaseStoreIn getPurchaseStoreIn() {
		return purchaseStoreIn;
	}

	public void setPurchaseStoreIn(PurchaseStoreIn purchaseStoreIn) {
		this.purchaseStoreIn = purchaseStoreIn;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public Integer getInNumber() {
		return inNumber;
	}

	public void setInNumber(Integer inNumber) {
		this.inNumber = inNumber;
	}

	public Integer getOutNum() {
		return outNum;
	}

	public void setOutNum(Integer outNum) {
		this.outNum = outNum;
	}

	public Integer getOutState() {
		return outState;
	}

	public void setOutState(Integer outState) {
		this.outState = outState;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Integer getDiscount() {
		return discount;
	}

	public void setDiscount(Integer discount) {
		this.discount = discount;
	}

	public String getBatchNum() {
		return batchNum;
	}

	public void setBatchNum(String batchNum) {
		this.batchNum = batchNum;
	}

}
